# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=libngf
pkgver=0.27
pkgrel=0
pkgdesc="Nemo's libngf"
url="https://git.sailfishos.org/mer-core/libngf"
arch="all"
license="LGPL-2.1-or-later"
depends_dev="glib-dev dbus-dev dbus-glib-dev check-dev"
makedepends="$depends_dev automake autoconf libtool"
subpackages="$pkgname-dev"
source="https://git.sailfishos.org/mer-core/libngf/-/archive/$pkgver/libngf-$pkgver.tar.gz"
options="!check" # No suitable tests

prepare() {
	default_prepare

	./autogen.sh
}

build() {
	./configure \
		--prefix=/usr
	make
}

package() {
	DESTDIR="$pkgdir" make install

	# Remove tests
	rm -rf "$pkgdir"/opt
}

sha512sums="f4577e3d203491487e287ff5d8de6df5076f8c92780ca5e416464a524353943845b5aaf0e6049a5ec427b8b5bc9717300bcdc8ec6923f082416e099440ad65f3  libngf-0.27.tar.gz"
